package itheima.d06;

public class Oig {
    public String name;
    public int age;
    public String owner;
    public String type;
    public static String country;


    public Oig(){
        System.out.println("无参构造方法");

    }
    public void eat(){

        System.out.println("吃饭");
    }
    static {
        System.out.println("静态代码块");
        country = "中国";
    }
    {
        System.out.println("普通代码块");
        age = 1;
    }
}
